//
//  HWJiaoXiaoxiaViewController.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/8/29.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWJiaoXiaoxiaViewController.h"
#import  "HWUserXiaoXiCell.h"

@interface HWJiaoXiaoxiaViewController ()<UITableViewDelegate,UITableViewDataSource>
@property(strong,nonatomic) UITableView *mainaTableVie;
@end

@implementation HWJiaoXiaoxiaViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    //  设置属性
    [self setUpAttribute];
    
    
    
    // 设置UI
    [self setupUI];
}


#pragma mark -------   设置属性
- (void)setUpAttribute {
    
    
    
    
}


-(UITableView *)mainaTableVie {
    
    if (_mainaTableVie == nil
        ) {
        
        
        _mainaTableVie = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, kScreenW, kScreenH-CF_NavHeight-118) style:UITableViewStylePlain];
        _mainaTableVie.delegate = self;
        _mainaTableVie.dataSource = self;
        _mainaTableVie.separatorStyle = UITableViewCellSeparatorStyleNone;
         _mainaTableVie.backgroundColor = [UIColor whiteColor];
        
    }
    return   _mainaTableVie ;
}

- (void)setupUI {
    self.view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.mainaTableVie];
    
}


#pragma mark -----  UITableViewDataSource
-  (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    
    return  1;
    
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    return  13;
}



- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    
    
    
    static NSString *cellId = @"cell1ID";
    
    HWUserXiaoXiCell  *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
    if (!cell) {
        cell =  [[NSBundle mainBundle]loadNibNamed:@"HWUserXiaoXiCell" owner:nil options:nil].lastObject;
    }
    cell.selectionStyle =  UITableViewCellSelectionStyleNone;
    cell.backgroundColor = [UIColor whiteColor];
    return  cell;
    
    
    
    
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    
    return  68;
}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
